﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;

namespace Sino.CapacityCloud.Services
{

    public interface ISerializer
    {

        object SerializeObject(object data);

        object SerializeObject<T>(T data);

        object SerializeObject(Type type, object data);

        Stream SerializeObjectToStream(object data);

        Stream SerializeObjectToStream<T>(T data);

        Stream SerializeObjectToStream(Type type, object data);

    }

}